#ifndef PLAYER_H
#define PLAYER_H

#include "texture.h"
#include "hitbox.h"

class cPlayer
{
    public:
        cPlayer();
        ~cPlayer();

        void update(int frameTime);

        int x();
        int y();
        cTexture* texture();
        Hitbox* hitbox();

    protected:
    private:
        float m_x, m_y;
        int m_velx, m_vely;
        int m_baseSpeed, m_slowSpeed;
        int m_lives;
        int m_reloadTime, m_reloadAt;
        bool m_slow, m_shoot, m_canShoot;
        cTexture m_texture;
        Hitbox* m_hitbox;

        void checkKeys();
        void movePlayer(int frameTime);
        void shoot();
};

#endif // PLAYER_H
